﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SuperCalc.CustomControls
{
    /// <summary>
    /// 用于显示计算过程及当前的运算数值
    /// </summary>
    public partial class UCResultsTheBox : UserControl
    {
        #region 属性
        /// <summary>
        /// 上层文本
        /// </summary>
        [Description("上层文本"), Category("自定义属性")]
        public string TopText
        {
            get
            {
                return txtOn.Text;
            }
            set
            {
                txtOn.Text = value;
            }
        }
        /// <summary>
        /// 下层文本
        /// </summary>
        [Description("下层文本"), Category("自定义属性")]
        public string DownText
        {
            get
            {
                return txtDown.Text;
            }
            set
            {
                txtDown.Text = value;
            }
        }
        /// <summary>
        /// 上层文本长度
        /// </summary>
        [Description("上层文本长度"), Category("自定义属性")]
        public int TopTextLong
        {
            get
            {
                return txtOn.Text.Length;
            }
        }
        /// <summary>
        /// 下层文本长度
        /// </summary>
        [Description("下层文本长度"), Category("自定义属性")]
        public int DownTextLong
        {
            get
            {
                return txtDown.Text.Length;
            }
        }
        #endregion

        #region 构造函数
        public UCResultsTheBox()
        {
            InitializeComponent();
        }
        #endregion
    }
}
